package cn.qingyun.gis.modules.scenes.response;

import cn.qingyun.gis.modules.express.util.anno.CSVField;
import cn.qingyun.gis.modules.scenes.conver.CustomEnumConverter;
import cn.qingyun.gis.modules.scenes.conver.DatetimeConverter;
import cn.qingyun.gis.modules.scenes.conver.OperatorConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("场景攻坚随访导出明细")
public class ScenesExportDto {

    // 用于导出门头照片
    private String id;

    @ExcelProperty("poi-id")
    @CSVField(value = "poi-id")
    private String poiId;

    @ExcelProperty("场景类型")
    @CSVField("场景类型")
    private String type;

    @ExcelProperty("poi名称")
    @CSVField(value = "poi名称")
    private String poiName;

    @ExcelProperty("poi地址")
    @CSVField(value = "poi地址")
    private String address;

    @ExcelProperty("地市")
    @CSVField(value = "地市")
    private String regionCity;

    @ExcelProperty("区县")
    @CSVField(value = "区县")
    private String regionDis;

    @ExcelProperty("网格")
    @CSVField(value = "网格")
    private String gridName;

    @ExcelProperty("高德匹配电话")
    @CSVField(value = "高德匹配电话")
    private String telephone;

    @ExcelProperty(value = "是否随访", converter = CustomEnumConverter.class)
    @CSVField(value = "是否随访")
    private Integer kwState;

    @ExcelProperty("随访人工号")
    @CSVField(value = "随访人工号")
    private String kwPhone;

    @ExcelProperty("随访人姓名")
    @CSVField(value = "随访人姓名")
    private String kwName;

    @ExcelProperty("随访场景类型")
    @CSVField(value = "随访场景类型")
    private String kwType;

    @ExcelProperty("店主姓名")
    @CSVField(value = "店主姓名")
    private String kwBossName;

    @ExcelProperty("随访联系电话")
    @CSVField(value = "随访联系电话")
    private String kwBossTel;

    @ExcelProperty("月均消费")
    @CSVField(value = "月均消费")
    private String kwBossConsume;

    @ExcelProperty(value = "所属运营商", converter = OperatorConverter.class)
    @CSVField(value = "所属运营商")
    private Integer belongOperator;

    @ExcelProperty("(优惠)到期时间")
    @CSVField(value = "(优惠)到期时间")
    private String expireDate;

    @ExcelProperty("商机描述")
    @CSVField(value = "商机描述")
    private String businessContent;

    @ExcelProperty(value = "随访时间", converter = DatetimeConverter.class)
    @CSVField(value = "随访时间")
    private Date kwTime;

    @ExcelProperty("门头照片")
    @CSVField(value = "门头照片")
    private String photo;

}
